package com.mirana.module.common.model;

import com.mirana.frame.base.model.BaseModel;
import com.mirana.frame.db.base.anno.ColumnPlus;
import com.mirana.frame.db.base.anno.Notes;
import com.mirana.frame.db.base.anno.TablePlus;
import lombok.Data;

/**
 * 课程Model
 *
 * @Title
 * @Description
 * @CreatedBy Assassin
 * @DateTime 2017年10月4日下午7:36:28
 */
@Data
@Notes("课程")
@TablePlus(name = "mc_course")
public class McCourse extends BaseModel {

    private static final long serialVersionUID = 1L;

    @Notes("所属分类")
    @ColumnPlus(name = "categoryid")
    private Long categoryId;

    @Notes("所属分类名称")
    @ColumnPlus(name = "categoryname")
    private String categoryName;

    @Notes("课程名称")
    @ColumnPlus(nullable = false)
    private String name;

    @Notes("详情")
    @ColumnPlus
    private String description;

    @Notes("封面图片url")
    @ColumnPlus
    private String posterurl;

    @Notes("视频id")
    @ColumnPlus
    private Long videoid;

    @Notes("标签ids，json数组存储")
    @ColumnPlus(name = "tagids")
    private String tagIds;

}
